package com.design.model;

/**
 * def
 *
 * @author lw
 * @date 2023/12/1 15:21
 **/
public class BridgePatternExample {

    public static void main(String[] args) {
        Color redColor = new Red();
        Color blueColor = new Blue();

        Shape redCircle = new Circle(redColor);
        Shape blueSquare = new Square(blueColor);

        redCircle.draw();
        blueSquare.draw();
    }
}
